package btp.SuryaSiddhanta.Planets;

import btp.Calendars.GregorianCalendar;

public class Sun {
	public static final long REVOLUTIONS = 57753336;
	
	public static Circle getPosition(long kyDayCount){
		return Circle.getDivisionsOfCircle(((double)kyDayCount)*REVOLUTIONS/Constants.CIVIL_DAYS);
	}
	
	public static void main(String [] args){
		HinduMeanLunarCalendar h = HinduMeanLunarCalendar.getHinduLunarFromRD(GregorianCalendar.getRDFromGregorian(2013, GregorianCalendar.JANUARY, 1));
		System.out.println("Year = "+h.getYear());
		System.out.println("Month = "+h.getMonth());
		System.out.println("Day = "+h.getDay());
		long days = CurrentDay.getCurrentDay(h)-Constants.CIVIL_DAYS/2;
		Circle c = getPosition(days);
		System.out.println("$("+c.getRevolutions()+") "+c.getSigns()+"^{s} "+c.getDegrees()+"^{o} "+c.getMinutes()+"' "+(int)c.getSeconds()+"''$");
		//System.out.println("Signs = "+c.getSigns());
		//System.out.println("Degrees = "+c.getDegrees());
		//System.out.println("Minutes = "+c.getMinutes());
		//System.out.println("Seconds = "+c.getSeconds());
	}

}
